import pytest
from appium import webdriver
from basePage.baseAPP import BaseAPP

@pytest.fixture(scope="session", autouse=True)
def open_app():
    abc = {
        "platformName": "Android",
        "platformVersion": "7.1.2",
        "deviceName": "emulator-5554",
        "appPackage": "com.tencent.wework",
        "appActivity": ".launch.WwMainActivity",
        "noReset": 'true'
    }
    driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", abc)
    yield driver
    driver.quit()